<?php
return [
    'default' => env('CACHE_TYPE','file'),
    'stores'  => [
        'file'  => [
            'type'   => 'file',
            // 缓存保存目录
            'path'   => runtime_path() . '/cache/',
            // 缓存前缀
            'prefix' => '',
            // 缓存有效期 0表示永久缓存
            'expire' => 0,
        ],
        'redis' => [
            'type'     => 'redis',
            'host'     => env('REDIS_HOST', '127.0.0.1'),
            'port'     => env('REDIS_PORT', 6379),
            'password' => env('REDIS_PASSWORD', ''),
            'prefix'   => env('APP_NAME', 'wm') . ':',
            'database' => env('REDIS_DATABASE', 0),
            'expire'   => 0,
        ],
    ],
];